<%--
  Created by IntelliJ IDEA.
  User: Madawei
  Date: 2021/6/18
  Time: 17:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>商品类别</title>
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript">
        $(function(){
            $.get("http://localhost:8080${pageContext.request.contextPath}/findGoodsType",null,function (data) {
               for(var n in data){
                   $("#name").append("<option value='"+n+"'>"+data[n]+"</option>");
               }
            });
        });
    </script>
</head>

<body>
<h1>商品列表</h1>
    <form action="" method="post" enctype="application/x-www-form-urlencoded">
        <select name="name" id="name">
            <option>------请选择------</option>
        </select>
    </form>
</body>>
</html>
